/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Controlador;

import java.util.Calendar;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author CORE i5
 */
public class ControladorBoleteria {
/*
    public int guardar(String codigo, String numeroBoleta, String idCompetencia, String tipo) {
        Boleta b = new Boleta();
        b.setCodigo(codigo);
        b.setNumeroBoleta(numeroBoleta);
        b.setIdCompetencia(idCompetencia);
        b.setTipo(tipo);
        b.setRecibida(false);
        Calendar c = Calendar.getInstance();
        String dia = Integer.toString(c.get(Calendar.DATE));
        String mes = Integer.toString(c.get(Calendar.MONTH));
        String annio = Integer.toString(c.get(Calendar.YEAR));

        int hora = c.get(Calendar.HOUR_OF_DAY);
        int minutos = c.get(Calendar.MINUTE);
        
        b.setHoraIngreso(hora+":"+minutos);
        b.setFechaIngreso(dia+"/"+mes+"/"+annio);
        try {
            daoBoleta.create(b);
            return -1;
        } catch (PreexistingEntityException ex) {
            Logger.getLogger(ProgramaController.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Exception ex) {
            Logger.getLogger(ProgramaController.class.getName()).log(Level.SEVERE, null, ex);
        }
        return 0;
    }
*/
   
}
